export const gradeToWord = ["低","中","高","严重","紧急"];
export const gradeToColor = ["#909399","#67C23A","#E6A23C","#F56C6C","#F56C6C"]
export const wordToGrade = function(word){
  if(word === "低")
    return 1
  else if(word === "中")
    return 2
  else if(word === "高")
    return 3
  else if(word === "严重")
    return 4
  else
    return 5
}
export const projectInfo = {
  projectId:312,
  projectName:"华中师范大学",
  projectDescription:"Bug集中线上管理平台，简单易用，随时随地；可跟踪，不怕丢失；循序渐进，告别bug",
}

export const recentBugs = {
  "summary":{
    "total":10,
    "sum1":2,
    "sum2":3,
    "sum3":5
  },
  "bugs":[
      {
        "bugId":12,
        "bugName":"demo1",
        "bugGrade":3,
        "bugState":1,
        bugCreateTime:"2021-12-01 14:15:20",
        bugRecentTime: "2021-12-02 14:15:20",
        createUserName:"ccnuer1",
        dealUserName:"ccnuer2"
    },
    {
      "bugId":13,
      "bugName":"demo2",
      "bugGrade":4,
      "bugState":0,
      "bugCreateTime": "2021-12-02 14:15:20",
      "bugRecentTime": "2021-12-02 14:15:20",
      "createUserName":"ccnuer1",
      "dealUserName":"ccnuer2"
    },
  ]
}

export const bugs = [
  {
    "bugId":12,
    "bugName":"demo1",
    "bugGrade":3,
    "bugState":1,
    "bugCreateTime": "2021-12-01 14:15:20",
    "bugRecentTime": "2021-12-02 14:15:20",
    "createUserName":"ccnuer1",
    "dealUserName":"ccnuer2"
  },
  {
    "bugId":13,
    "bugName":"demo2",
    "bugGrade":4,
    "bugState":0,
    "bugCreateTime": "2021-12-02 14:15:20",
    "bugRecentTime": "2021-12-02 14:15:20",
    "createUserName":"ccnuer1",
    "dealUserName":"ccnuer2"
  },
]

export const partnerSimpleInfo = {
  partners:[
    {
      partnerId:231,
      partnerCharacter:1,
      nickName:"倾风"
    },
    {
      partnerId:333,
      partnerCharacter:1,
      nickName:"星辉"
    },
    {
      partnerId:373,
      partnerCharacter:1,
      nickName:"老吴"
    }
  ]
}

export const profile = {
  "resultCode": 0,
  "data": {
    "userName" : "lwr",
    "userEmail" : "1210987531@qq.com",
  }
}

export const projectList = {
  "projects":[
    {
      "projectId":312309,
      "projectName": "demo",
      "projectCreateTime":"2021-11-16",
      "projectPartnerNum": 2,
      "projectSize":0,
      "projectDescription":"项目1"
    },
    {
      "projectId":311309,
      "projectName": "demo",
      "projectCreateTime":"2021-11-16",
      "projectPartnerNum": 2,
      "projectSize":0,
      "projectDescription":"项目2"
    }
  ]
}
